package action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JFrame;

import vue.ChooseGameForm;

public class ActionNouvellePartie extends AbstractAction {

	private JFrame frame;
	
	public ActionNouvellePartie(String texte, JFrame f){
		super(texte);
		this.frame = f;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		frame.dispose();
		ChooseGameForm c = new ChooseGameForm();

	}

}
